package com.nine.mymall.search.fegin;

import com.nine.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author: duonine
 * @date: 2021/11/21
 */
@FeignClient("mymall-product")
public interface ProductFeginService {

    @RequestMapping("/product/attr/info/{attrId}")
    R attrInfo(@PathVariable("attrId") Long attrId);


    @RequestMapping("/product/brand/infos")
    public R brandInfos(@RequestParam("brandIds") List<Long> brandIds);

}
